package com.basker.pisces.domain.value.meta;

import com.basker.pisces.core.Element;
import com.basker.pisces.core.meta.annotation.DataField;
import com.basker.pisces.core.meta.annotation.DataObjectMeta;

@DataObjectMeta
public class EnumOption extends Element {

    @DataField
    private String id;

    public EnumOption() {

    }

    public EnumOption(String id, String value) {
        this.id = id;
        this.setDisplayName(value);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String toString() {
        if (this.id != null) {
            return "[" + this.id + "]-" + this.getDisplayName();
        }

        return "";
    }

}
